package com.ruoyi.taskasses.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@ApiModel(description = "其他航天任务VO")
public class OtherSpaceReturnVO {

    @ApiModelProperty("时序分布结果")
    private TimeResBO timeRes;


    @ApiModelProperty("模型")
    private List<String> models;

    @ApiModelProperty("地磁活动指数")
    private IndexBO geoIndex;

    @ApiModelProperty("太阳活动指数")
    private IndexBO solarIndex;

    @ApiModelProperty("最优模型")
    private String result;



    @ApiModelProperty("评估结果")
    private List<EstimateAnalysisResVO> estimate;

    @ApiModel(description = "指数VO")
    @Data
    public class IndexBO {

        @ApiModelProperty("最大值")
        private int max;

        @ApiModelProperty("最小值")
        private int min;

        @ApiModelProperty("活动指数分布 数据")
        private List index ;

        @ApiModelProperty("活动指数分布 时间")
        private List indexDate ;

    }

    @ApiModel(description = "时序分布")
    @Data
    public class TimeResBO {

        @ApiModelProperty("时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        private List<Date> time;

        @ApiModelProperty("结果 数组")
        private Map<String,List> xres;

        @ApiModelProperty("结果 数组")
        private Map<String,List> yres;

        @ApiModelProperty("结果 数组")
        private Map<String,List> zres;

    }

}
